package com.itheima.homework3;

public class Demo3_Ticket {
    public static void main(String[] args) {
        Ticket ticket = new Ticket();
        Thread t1 = new Thread(ticket,"1号窗口");
        Thread t2 = new Thread(ticket,"2号窗口");
        Thread t3 = new Thread(ticket,"3号窗口");
        t1.start();
        t2.start();
        t3.start();
    }
}
